﻿using System.Collections.Generic;
using Inovout.Repositories;
using Inovout.YunYao.Models;
using NHibernate.Criterion;

namespace Inovout.YunYao.Repositories
{

    public class LocationRepository : DataObjectRepository<Location>
    {
        public IEnumerable<Location> FindAllTop()
        {
            return base.FindAll(Expression.IsNull("Parent"));
        }
    }
}
